import Vue from 'vue'
import Router from 'vue-router'

// 导入SignIn,用来跳转
import SignIn from './components/SignIn/SignIn'

const Home = () => import(/* webpackChunkName: "Home" */ '@/components/Home/Home')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: { name: 'Home' }
    },
    {
      path: '/Home',
      component: Home,
      name: 'Home',
    },
    {
      path: '/signin',
      name: 'SignIn',
      component: SignIn
    }
  ]
})
